
<table id='memberInfo' class="table table-hover">
    <colgroup>
        <col class="span1">
        <col class="span7">
    </colgroup>
    <tbody>
        <?php
        if (isset($memberPointData))
            $memberPointData = array();
        if (isset($memberPointData['memberPoint'])) {
            $field1 = 'media_memberPoint_memberPointInfo';
            $model->addField($field1);
            $model->$field1 = $memberPointData['memberPoint'];
            $field2 = 'media_deductedMemberPoint_' . $mediaIndex;
            $model->addField($field2);
            ?>
            <tr><td> <?php echo '已有积分'; ?> </td>
                <td>
                    <?php
                    echo $form->textField($model, $field, array('required' => true, 'diabled' => 'true'));
                    ?>
                </td>
            </tr>  
            <tr><td> <?php echo '减扣积分'; ?> </td>
                <td>
                    <?php
                    echo $form->textField($model, $field2, array('required' => true, 'placeholder' => '减扣的积分'));
                    ?>
                </td>
            </tr>
        <?php } ?>
        <?php
        if (isset($memberPointData['fixedCardId'])) {
            $field = 'media_fixedCardId_memberPointInfo';
            $model->addField($field);
            ?>
            <tr><td> <?php echo '实体卡号'; ?> </td>
                <td>
                    <?php
                    echo $form->textField($model, $field, array('required' => true, 'diabled' => 'true'));
                    ?>
                </td>
            </tr>  
        <?php } ?>
        <?php
        if (isset($memberPointData['mobile'])) {
            $field = 'media_mobile_memberPointInfo';
            $model->addField($field);
            ?>
            <tr><td> <?php echo '手机号'; ?> </td>
                <td>
                    <?php
                    echo $form->textField($model, $field, array('required' => true, 'diabled' => 'true'));
                    ?>
                </td>
            </tr>  
        <?php } ?>
        <?php
        if (isset($memberPointData['userName'])) {
            $field = 'media_userName_memberPointInfo';
            $model->addField($field);
            ?>
            <tr><td> <?php echo '姓名'; ?> </td>
                <td>
                    <?php
                    echo $form->textField($model, $field, array('required' => true, 'diabled' => 'true'));
                    ?>
                </td>
            </tr>  
        <?php } ?>
    </tbody>
</table>
</div>  
<div class="row-fluid">
    会员卡号：<?php echo $form->textField($model, $fixedCardIdField, array('placeholder' => '实体卡号' . '...', 'required' => true)); ?>
    手机号：<?php echo $form->textField($model, $mobileField, array('placeholder' => '手机号' . '...', 'required' => true)); ?>
    <?php
    echo $control->getAjaxLink(array('id' => 'showMemberPointInfo', 'name' => '积分信息'), array(
        'htmlOptions' => array('class' => 'btn')
    ))
    ?>
</div>